﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FASJ.aspx.cs" Inherits="SkWeb.FASJ.FASJ" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>数据表结构信息</title>
     <link  id="MyCss" href="../COMMON/CSS/Default.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript" language="javascript" src="../COMMON/JS/changerows.js" ></script>
</head>
  <body class="tree_bgcolor" style="text-align: center">
    <form id="form1" runat="server" >
    <div >
     <table  border="1" cellpadding="5" cellspacing="0" class="table_bordercolor" height="56px" width="100%" id="TABLE1" runat="server">
          <tr>
                            <td  colspan="6" style="height: 16px; text-align: center; width:100%" valign="top" bgcolor="#3cb6e5">
                                【 <strong>方案设计</strong>】
                                </td>
                        </tr>
                        <tr >
                        <td colspan="6" width="200px">
                       
                        </td>
                         </tr>
                        <tr valign="top"  style ="height:40%; width:900px; " id="GridUser2">
                        <td  colspan="6" style="height: 16px; text-align: center; width:100%" valign="top" align="center">
        <table >
        <tr>
        <td align="left">  &nbsp选择 word 文档 &nbsp：
        <asp:FileUpload ID="FileUpload1" runat="server" />&nbsp&nbsp
        <asp:Button Text="上传" ID="btnUplaod" runat="server" OnClick="btnUplaod_Click" CssClass="submit" />
        </td>
        </tr>
            <tr align="center">
                <td><asp:Label ID="lblMessage" runat="server"></asp:Label>
                    
                </td>
            </tr>
            <tr style=" vertical-align:top;height:100px">
                <td >
                 <div style="overflow:auto">
                    <asp:GridView ID="GridView1" CssClass="gridview"  runat="server" 
                        AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" GridLines="None"
                        onrowdatabound="GridView1_RowDataBound" ondatabound="GridView1_DataBound" Width="100%">
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White"/>
                        <Columns>
                            <asp:BoundField DataField="Name"  HeaderText="书签名" HeaderStyle-Width="120px" ReadOnly="True" />
                            <asp:BoundField DataField="Text"  HeaderText="书签文字" HeaderStyle-Width="300px" ReadOnly="True" />

                             <asp:TemplateField HeaderText="表名" Visible="true">
                                <HeaderStyle Width="150px" />
                                <ItemTemplate>
                                 <asp:DropDownList  runat="server" AutoPostBack="true" onselectedindexchanged="ddlTableName_SelectedIndexChanged" ID="ddlTableName" Width="130px"  />
                                </ItemTemplate>
                            </asp:TemplateField>
                                 <asp:TemplateField HeaderText="主键名" Visible="true" >
                                <HeaderStyle Width="150px" />
                                <ItemTemplate>
                                 <asp:DropDownList runat="server" ID="ddlPkFieldName" Width="130px"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="字段名" Visible="true" >
                                <HeaderStyle Width="150px" />
                                <ItemTemplate>
                                 <asp:DropDownList runat="server" ID="ddlFieldName" Width="130px"/>
                                </ItemTemplate>
                            </asp:TemplateField>

                             <asp:TemplateField HeaderText="计算公式" Visible="true" >
                                <HeaderStyle Width="150px" />
                                <ItemTemplate>
                                 <asp:DropDownList  runat="server" ID="ddlFormula" Width="100px"/>
                                </ItemTemplate>
                            </asp:TemplateField>

                             
                       
                        </Columns>
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                      <%--  <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />--%>
                       <%-- <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />--%>
                    </asp:GridView>
                     </div>
                </td>
            
            </tr>
            <tr><td></td></tr>
            <tr>
            <td align="left">选择主键  表名：<asp:DropDownList runat="server" AutoPostBack="true" ID="ddlTbName" Width="130px" OnSelectedIndexChanged="ddlTbName_SelectedIndexChanged"></asp:DropDownList>
             &nbsp&nbsp&nbsp&nbsp    字段名：<asp:DropDownList runat="server" ID="ddlFieldName1" Width="130px"></asp:DropDownList>
                &nbsp;&nbsp;&nbsp; 
                方案名称：<asp:TextBox ID="txtSjName" runat="server" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="保存" />
                </td>
            </tr>
           
          
        </table>
        </td>
        </tr>
        </table>
    </div>
  
    <asp:HiddenField ID="hiddenPath" runat="server" />
  
    </form>
</body>
</html>
